package com.mbc.web.common.client.ui.control;

import com.google.gwt.user.client.ui.PasswordTextBox;

public class MPasswordTextBox extends PasswordTextBox {
	public void setRequired(boolean required)
	{
		if(required)
			this.getElement().setAttribute("required", "");
		else
			this.getElement().removeAttribute("required");
	}
	
	public void setTabindex(String tabindex){
		this.getElement().setAttribute("tabindex", tabindex);
	}
	
	public void setPlaceholder(String placeholder){
		this.getElement().setAttribute("placeholder", placeholder);
	}
}
